﻿namespace OpenCompiler.AST
{
	public class FileStatement : GlobalStatement
	{
		internal FileStatement(string filename)
			: base(null)
		{
			this.Filename = filename;
		}

		public string Filename { get; private set; }

		public NamespaceStatement Namespace(string name)
		{
			var ns = new NamespaceStatement(this, name);
			return ns;
		}

		public override string ToString()
		{
			return string.Format("/* Listing for : {0} */", this.Filename);
		}
	}
}
